package com.ck.javacode.Chapter8.extend_.improve_;
// 父类 是Pupil和 Graduate
public class Student {
    public String name;
    public int age;
    private double score;//分数

    public void setScore(double score) {
        this.score = score;
    }
    public void testing(){
        System.out.println("学生"+name+"正在考试");
    }
    public void showInfo(){
        System.out.println("学生名 "+name+" 年龄 "+age+" 成绩 "+score);
    }
}
